package com.airlines.crewassignment.dao.basicinfo;

import com.airlines.base.dao.base.BaseMapper;
import com.airlines.crewassignment.entity.basicinfo.AuthorizedStrength;

import java.util.List;
import java.util.Map;

/**
 * @author xxxx
 * @date 2018/8/7
 * @company xxxx Airlines
 * @description 机组编制定义Mapper
 */
public interface AuthorizedStrengthMapper extends BaseMapper<AuthorizedStrength,String> {
    /**
     * 通过CrewId和序列获取
     * @param authorizedStrength
     * @return
     */
    AuthorizedStrength getByCrewIdAndSerial(AuthorizedStrength authorizedStrength);

    /**
     * 用于删除
     * @param authorizedStrength
     * @return
     */
    List<AuthorizedStrength> getListForDelete(AuthorizedStrength authorizedStrength);

    /**
     * 删除当前条
     * @param authorizedStrength
     */
    Integer delete(AuthorizedStrength authorizedStrength);

    /**
     *
     * @param techNoArr
     * @return
     */
    String getTechNamesByTechNoArr(Map map);
}
